<?php
session_start(); 

include 'library/config.php';
include 'library/connect.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="Styles.css" />
<script type="text/javascript" src="AJAX.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript">
	 
		$(document).ready(function(){
			$("#top").hide();
			$(".loginForm").hide();
			$(".regDiv").hide();

			
			$("#top").fadeIn("slow");
			
			$(".login").click(function () {
			$(".login, .register, .separator").hide()
			$(".loginForm").fadeIn("slow");
			});
			
			$(".searchBtn").click(function() {
			
			});
			
			$(".register").click(function() {
				$(".movies").fadeOut("slow",function() {
				$(".regDiv").fadeIn("slow");
				});
			});	
			
			$(".home").click(function() {
				$(".regDiv").fadeOut("slow",function() {
				$(".movies").fadeIn("slow");
				});
			});
					
		});

	 
	</script>
<title>2view.be</title>
</head>

<body>
<div id="center">
<div id="left"></div>
<div id="mid">
	<div id="top">
		<div id="logo"></div>
		<div id="loginDiv">
        <?php require_once("loginForm.php");?>        
        </div>
   <div id="ruler"> <br/><br/> <span class="home"> Home  | </span><span><a href="index.php?p=explore" class="explore"> Explore | </a></span><? if($_SESSION['ingelogd'])echo '<span><a class="profilelink" href="index.php?p=profile">Profile</a></span>'?> </span><div style="float:right;"><input type="text" name="txtSearch" size="25" id="txtSearch" /><input type="image" src="images/search.png" onclick="javascript:Search();" /></div></div>
    
    <div id="content" style="float:left;">
    <? $page = $_GET['p'];
		if($page == "profile"){
			require_once('library/profile.php');
		}else if($page == "explore"){
			echo '<div style="float:left;width:600px;margin-top:20px;">';
			require_once('library/explore.php');
			echo '</div>';
		}else{
	?>
		
        <div style="width:600px;float:left;margin-top:10px;" class="movies" id="contentsmall">
       	 <div style="width:300px;">
        	<div style="float:left;width:300px;text-align:center;margin-bottom:10px;margin-top:10px;"><b>New Movies</b></div>
            <?require_once('latestMovie.php');?>                    
        </div>
         <div style="width:300px;float:left;margin-top:-300px;">
        		<div style="float:left;width:300px;text-align:center;"><b>Top 3 rated</b></div>  
               <?require_once('toprated.php');?>     
        </div>
       </div>
        
    	
    	<div class="regDiv" style="margin:100px;">
    	
    	<table>
    	
    	<tr><td style="width: 289px">
    	
    	<form method="post" action="" class="registerForm">
    	
    	<table>
    	<tr><td><p>Username:</p></td><td><input type="text" name="txtUserId" size="15"/></td></tr>
    	<tr><td><p>First Name:</p></td><td><input type="text" name="txtUserId" size="15"/></td></tr>
    	<tr><td><p> show in profile:</p></td><td><input type="checkbox" name="txtUserId" size="15"/></td></tr>
		<tr><td><p>Last Name:</p></td><td><input type="text" name="txtUserId" size="15"/></td></tr>
		<tr><td><p> show in profile:</p></td><td><input type="checkbox" name="txtUserId" size="15"/></td></tr>
		<tr><td><p>E-mail:</p></td><td><input type="text" name="txtUserId" size="15"/></td></tr>
		<tr><td><p> show in profile:</p></td><td><input type="checkbox" name="txtUserId" size="15"/></td></tr>
    	<tr><td><p>Password:</p></td><td><input type="password" name="txtUserId" size="15"/></td></tr>
		<tr><td><p>Confirm Password:</p></td><td><input type="password" name="txtUserId" size="15"/></td></tr>
    	<tr><td><p>Phone:</p></td><td><input type="text" name="txtUserId" size="15"/></td></tr>
    	<tr><td><p> show in profile:</p></td><td><input type="checkbox" name="txtUserId" size="15"/></td></tr>
		</table>
		<p><input type="submit" value="Submit"/></p>
		
    	</form>
    	</td>
    	&nbsp;
    	<td style="height:300px;width:200px;">
     	
        <div class="regInfo">
    	Thanks for willing to register<br />
		at 2view.be!<br />
		<br />
		Fill in the form and press submit.<br />
		Your request will be handled by one of our moderators as soon as 
		possible.<br />
		<br />
		All fields are required, with the exception of your phone number.<br />
    	</div>
    	</td></tr>
    	</table>
    	
    	
    	</div>
        <?}?>        
    </div>
    
</div>
<div id="right" style="float:left;"></div>
</div>
</body>
</html>
